package org.jetlinks.pro.things.impl.connector;

import org.jetlinks.pro.things.ThingsConnector;
import org.jetlinks.pro.things.ThingsConnectorProvider;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

import java.util.Map;

@Component
public class DoNotingThingsConnectorProvider implements ThingsConnectorProvider {
    @Override
    public String getId() {
        return "doNothing";
    }

    @Override
    public String getName() {
        return "停用";
    }

    @Override
    public Mono<ThingsConnector> createConnector(Map<String, Object> configuration) {
        return Mono.just(new DoNotingThingsConnector());
    }
}
